home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,401 to 4,500 / aol-file-protocol-4400-4401-to-4500.zip / AOLDLs / PDA-Newton Development / ND SciCalc (source) / info.txt < prev   
Text File  |  2014-12-08  |  2KB  |  29 lines

  1. Subject:  ND  SciCalc (source)
  2. Author:  EHN & DIJ Oakley
  3. Uploaded By:  PDC Phil
  4. Date:  5/2/1995
  5.  
  6. File:  Calcsource.sit (20820 bytes) 
  7. Estimated Download Time (37942 baud):  < 1 minute
  8. Download Count:  209
  9.  
  10. Equipment:  Mac, NTK
  11. Needs:  UnSTUFFing Utility, Mac, NTK
  12.  
  13. Keywords:  NEWTON PDA DEV DEVELOPMENT SOURCE CODE NTK 
  14.  
  15. TYPE: Distribute Freely
  16.  
  17. Following many calls for the posting of source code, I am making this early version of my little scientific calculator available.  These are a few random jottings to explain why I did some of the extraordinary things which I have done, and hopefully to make up for the complete lack of comments.
  18.  
  19. When I first started this, I was tempted to use one of the keyboard objects as a prototype.  I was deterred partly by the difficulty in trying to get them to work, but largely because they prevented me from using the easy visual design of the interface which the NTK excels in.  It has since proved a good decision, as it has been much easier to tweak and tune the layout as things have progressed.  Maybe in future NTK releases, this will be different.
  20.  
  21. The way in which the calculator works centres on the result view, which contains two numeric slots (containing the last and last but one numbers as floats), the text displayed in the view, and various other slots and methods to make it all work.  When you click on a number key, it simply appends that digit to the displayed string, etc.  When you click on a function key, then an appropriate script is called to execute that function.
  22.  
  23. My ploy to make this easy to program is to use the compile() function.  Thus, the basic evaluation engine builds a string to compile(), compile()s it, and then displays the result.
  24.  
  25. This file has been checked with the latest version of McAfee Scan and/or DisInfectant 3.5 and is known to be virus-free at the time of uploading.
  26.  
  27. This file can be found in the PDA Forum's Software Libraries (Keyword PDA).
  28.  
  29.